/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.only5.gui.client.model;

import edu.uoc.tdp.pac4.only5.domain.Resource;
import java.util.List;
import javax.swing.ComboBoxModel;

/**
 *
 * @author Gerard
 */
public class ResourceComboBoxModel extends ResourceListModel implements ComboBoxModel{
    
    private Resource selectedItem;

    public ResourceComboBoxModel(List<Resource> resources) {
        super(resources);
    }
    
    @Override
    public void setSelectedItem(Object o) {
        this.selectedItem = (Resource) o;
    }

    @Override
    public Object getSelectedItem() {
        return selectedItem;
    }
    
}
